package com.example.treasure_back.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("policy")
public class PolicyModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String press;
    private String institution;
    private Timestamp finishTime;
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;
    private Timestamp useTime;
    private String content;
    private Integer isValid;
    private String province;
}
